package imooc;

import imooc.ccmouse.StringWritingApplet;
import imooc.ccmouse.PrintStreamWriter;
import imooc.ccmouse.StringProvider;

public class Configuration {
    public static MyApplet getMainApplet() {
        return new StringWritingApplet(
                new PrintStreamWriter(System.out),
                new StringProvider() {
                    @Override
                    public String get() {
                        return "Hello World!";
                    }
                });
    }
}
